<template>
  <div id="app">
    <ul>
      <li v-for="item in myArr" :key="item">{{ item }}</li>
    </ul>
    <button @click="go">走一走</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      myArr: ["帅哥", "美女", "程序猿"],
    };
  },
  methods: {
    go() {
      this.myArr = this.myArr.reduce((sum, v) => {
        sum.splice(-1, 0, v);
        return sum;
      }, []);
    },
  },
};
</script>